import React from 'react';
import Alert, { AlertProps } from 'antd/lib/alert';
import ClassNames from 'classnames';
import './HYAlert.less';

export interface Props extends AlertProps {}

export interface State {}

class HYAlert extends React.Component<Props, State> {
  constructor(props: Props) {
    super(props);
    this.state = {};
  }

  render(): JSX.Element {
    let { className, ...props } = this.props;

    return <Alert className={ClassNames(className, 'hy-alert')} {...props} />;
  }
}

export default HYAlert;
